
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Three20;

namespace TTCatalog
{
	public class Application
	{
		static void Main (string[] args)
		{
			UIApplication.Main (args);
		}
	}
	
	/*public class MsgCDelegate : TTMessageControllerDelegate
	{
		public override void DidSendFields (TTMessageController controller, NSObject[] fields)
		{
			
		}
		
		public override void ShowRecipientPicker (TTMessageController controller)
		{
			
		}
		
		public override void WillCancel (TTMessageController controller)
		{
			
		}


	
	} */
	
	

	// The name AppDelegate is referenced in the MainWindow.xib file.
	public partial class AppDelegate : UIApplicationDelegate
	{
		// This method is invoked when the application has loaded its UI and its ready to run
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			/*try 
			{ 
				TTNavigator n = new TTNavigator(NSObjectFlag.Empty);
				Console.WriteLine("Empty");
				TTNavigator navigator = new TTNavigator();
				Console.WriteLine("New");
				navigator.PersistenceMode = TTNavigatorPersistenceMode.All;
				Console.WriteLine("Persistence");
			}
			catch (Exception ex){ Console.WriteLine("ERRORED:");}
			*/
			
			
			
			window.MakeKeyAndVisible();
			

			TTNavigator nav = TTNavigator.Navigator();

		
			return true;
		}

		// This method is required in iPhoneOS 3.0
		public override void OnActivated (UIApplication application)
		{
		}
		
		public override void HandleOpenURL (UIApplication application, NSUrl url)
		{
			TTNavigator.Navigator().OpenUrl(url.AbsoluteString, false);
		}

	}
}
